package micro.beauty.common.core;

import java.io.Serializable;

/**
 * 统一返回数据
* @Author:         Liuliya
* @CreateDate:     2020/8/8 1:04
* @Version:        0.0.1
*/
public class ResponseData<T> implements Serializable {

    private static final long serialVersionUID = -6973357467910313086L;

    private int code;
    private String message;
    private T data;

    private long timestamp = System.currentTimeMillis();

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public long getTimestamp() {
        return timestamp;
    }

}
